Column and row series
A ColumnSeries draws a vertical bar for each value, a RowSeries draws a horizontal one. Both are bar series and
share every property, so this article covers them together: a row series is a column series turned on its side, the
values go on the X axis and the categories on the Y axis.
This article highlights the most used features. Every property is listed in the API explorer:
ColumnSeries and
RowSeries.
In XAML, declare them as XamlColumnSeries and XamlRowSeries.
Basic columns
Set the Values of each series and add them to the chart. Columns that share the same X coordinate are placed side
by side, one per series. The X axis in this sample uses Labels to name each category, and each series has a name
for the tooltip and legend (SeriesName in XAML).

<UserControl x:Class="WPFSample.Bars.Basic.View"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF"
xmlns:vms="clr-namespace:ViewModelsSamples.Bars.Basic;assembly=ViewModelsSamples">
<UserControl.DataContext>
<vms:ViewModel/>
</UserControl.DataContext>
<lvc:CartesianChart LegendPosition="Right">
<lvc:CartesianChart.Series>
<lvc:SeriesCollection>
<lvc:XamlColumnSeries SeriesName="Mary" Values="{Binding MaryValues}"/>
<lvc:XamlColumnSeries SeriesName="Ana" Values="{Binding AnaValues}"/>
</lvc:SeriesCollection>
</lvc:CartesianChart.Series>
<!-- We use force to min step to show all the labels always. -->
<lvc:CartesianChart.XAxes>
<lvc:AxesCollection>
<lvc:XamlAxis
Labels="{Binding Labels}"
LabelsRotation="0"
SeparatorsPaint="#c8c8c8"
SeparatorsAtCenter="False"
TicksPaint="#232323"
TicksAtCenter="True"
MinStep="1"
ForceStepToMin="True"/>
</lvc:AxesCollection>
</lvc:CartesianChart.XAxes>
</lvc:CartesianChart>
</UserControl>
namespace ViewModelsSamples.Bars.Basic;
public class ViewModel
{
public double[] MaryValues { get; set; } =
[2, 5, 4];
public double[] AnaValues { get; set; } =
[3, 1, 6];
public string[] Labels { get; set; } =
["Category 1", "Category 2", "Category 3"];
}
Rows
A RowSeries takes the same properties. This sample also shows data labels: ShowDataLabels turns them on and
DataLabelsPosition places them at the End, Middle or Start of each bar. When DataLabelsPaint is not set,
the theme picks a paint that contrasts with the bar, a light one for Middle (inside the bar) and a dark one
otherwise. Setting DataLabelsPaint also turns the labels on.

<UserControl
x:Class="WPFSample.Bars.RowsWithLabels.View"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF"
xmlns:vms="clr-namespace:ViewModelsSamples.Bars.RowsWithLabels;assembly=ViewModelsSamples">
<UserControl.DataContext>
<vms:ViewModel/>
</UserControl.DataContext>
<lvc:CartesianChart>
<lvc:CartesianChart.Series>
<lvc:SeriesCollection>
<lvc:XamlRowSeries
Values="{Binding Values1}"
ShowDataLabels="True"
DataLabelsSize="14"
DataLabelsPosition="End"/>
<lvc:XamlRowSeries
Values="{Binding Values2}"
ShowDataLabels="True"
DataLabelsSize="14"
DataLabelsPosition="Middle"/>
<lvc:XamlRowSeries
Values="{Binding Values3}"
ShowDataLabels="True"
DataLabelsSize="14"
DataLabelsPosition="Start"/>
</lvc:SeriesCollection>
</lvc:CartesianChart.Series>
</lvc:CartesianChart>
</UserControl>
namespace ViewModelsSamples.Bars.RowsWithLabels;
public class ViewModel
{
public int[] Values1 { get; set; } =
[8, -3, 4];
public int[] Values2 { get; set; } =
[4, -6, 5];
public int[] Values3 { get; set; } =
[6, -9, 3];
}
Stroke and fill paints
When Fill is not set, LiveCharts picks it from the current theme, based on the position of the series in the
chart's series collection. The default theme draws bars with no Stroke.

Stroke draws the border of each bar.
Series = new ISeries[]
{
new ColumnSeries<int>
{
Values = new [] { 4, 4, 7, 2, 8 },
Stroke = new SolidColorPaint(SKColors.Blue) { StrokeThickness = 4 }, // mark
Fill = null
},
new ColumnSeries<int>
{
Values = new [] { 7, 5, 3, 2, 6 },
Stroke = new SolidColorPaint(SKColors.Red) { StrokeThickness = 8 }, // mark
Fill = null
}
};

Fill paints the inside of each bar.
Series = new ISeries[]
{
new ColumnSeries<int>
{
Values = new [] { 4, 4, 7, 2, 8 },
Fill = new SolidColorPaint(SKColors.Blue), // mark
Stroke = null
},
new ColumnSeries<int>
{
Values = new [] { 7, 5, 3, 2, 6 },
Fill = new SolidColorPaint(SKColors.Red), // mark
Stroke = null
}
};
Paints can also draw gradients and dashed lines, see the Paints article.
Rounded corners
Rx and Ry set the radius of the corners, in pixels, on the X and Y directions. The default theme rounds them by
3 pixels.

Series = new ISeries[]
{
new ColumnSeries<int>
{
Values = new [] { 4, 4, 7, 2, 8 },
Rx = 50, // mark
Ry = 50 // mark
}
};
Width and spacing
The space of each category is shared by the bar series in it, then two properties adjust each bar:
MaxBarWidthlimits the width of a bar, in pixels. It is50by default, so bars stop growing on wide charts.Paddingis the space between the bars, in pixels. It is2by default.

With MaxBarWidth = 10 the bars are thin.
Series = new ISeries[]
{
new ColumnSeries<int>
{
Values = new [] { 4, 4, 7, 2, 8 },
MaxBarWidth = 10 // mark
}
};

With MaxBarWidth = double.MaxValue the bars take all the space they get.
Series = new ISeries[]
{
new ColumnSeries<int>
{
Values = new [] { 4, 4, 7, 2, 8 },
MaxBarWidth = double.MaxValue // mark
}
};

And with Padding = 0 too, the bars touch each other.
Series = new ISeries[]
{
new ColumnSeries<int>
{
Values = new [] { 4, 4, 7, 2, 8 },
MaxBarWidth = double.MaxValue,
Padding = 0 // mark
}
};
This sample uses both to draw a histogram-like chart:

<UserControl
x:Class="WPFSample.Bars.Spacing.View"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF"
xmlns:vms="clr-namespace:ViewModelsSamples.Bars.Spacing;assembly=ViewModelsSamples">
<UserControl.DataContext>
<vms:ViewModel/>
</UserControl.DataContext>
<!--
Padding: Defines the distance between every bars in the series
MaxBarWidth: Defines the maximum width a bar can take
-->
<lvc:CartesianChart>
<lvc:CartesianChart.Series>
<lvc:SeriesCollection>
<lvc:XamlColumnSeries
Values="{Binding Values}"
Padding="0"
MaxBarWidth="99999"/>
</lvc:SeriesCollection>
</lvc:CartesianChart.Series>
</lvc:CartesianChart>
</UserControl>
namespace ViewModelsSamples.Bars.Spacing;
public class ViewModel
{
public double[] Values { get; set; } =
[20, 50, 40, 20, 40, 30, 50, 20, 50, 40];
}
Backgrounds and layers
By default, bars that share a coordinate are placed side by side. With IgnoresBarPosition set to true, a series
takes the whole space of the category and is drawn over or under the other series. A common use is a background for
each column: the first series in this sample draws light bars with the maximum value of the axis, and sets
IsHoverable to false so they are not shown in tooltips.

<UserControl
x:Class="WPFSample.Bars.WithBackground.View"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF"
xmlns:vms="clr-namespace:ViewModelsSamples.Bars.WithBackground;assembly=ViewModelsSamples">
<UserControl.DataContext>
<vms:ViewModel/>
</UserControl.DataContext>
<!--
When the bar position is ignored, all bars are drawn in the same position.
The first series is the background, we force the bar size to 10 in the values scale
-->
<lvc:CartesianChart>
<lvc:CartesianChart.Series>
<lvc:SeriesCollection>
<lvc:XamlColumnSeries
IsHoverable="False"
Values="{Binding Values1}"
Fill="#32b4b4b4"
IgnoresBarPosition="True"/>
<lvc:XamlColumnSeries
Values="{Binding Values2}"
IgnoresBarPosition="True"/>
</lvc:SeriesCollection>
</lvc:CartesianChart.Series>
<lvc:CartesianChart.YAxes>
<lvc:AxesCollection>
<lvc:XamlAxis
MinLimit="0"
MaxLimit="10"/>
</lvc:AxesCollection>
</lvc:CartesianChart.YAxes>
</lvc:CartesianChart>
</UserControl>
namespace ViewModelsSamples.Bars.WithBackground;
public class ViewModel
{
public double[] Values1 { get; set; } =
[20, 50, 40, 20, 40, 30, 50, 20, 50, 40];
public double[] Values2 { get; set; } =
[3, 10, 5, 3, 7, 3, 8];
}
With a different MaxBarWidth for each series, the same property layers the bars, here a thin series in front of a
wide one:

<UserControl
x:Class="WPFSample.Bars.Layered.View"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF"
xmlns:vms="clr-namespace:ViewModelsSamples.Bars.Layered;assembly=ViewModelsSamples">
<UserControl.DataContext>
<vms:ViewModel/>
</UserControl.DataContext>
<!--
When the bar position is ignored, all bars are drawn in the same position.
-->
<lvc:CartesianChart>
<lvc:CartesianChart.Series>
<lvc:SeriesCollection>
<lvc:XamlColumnSeries
Values="{Binding Values1}"
MaxBarWidth="999999"
IgnoresBarPosition="True"/>
<lvc:XamlColumnSeries
Values="{Binding Values2}"
MaxBarWidth="30"
IgnoresBarPosition="True"/>
</lvc:SeriesCollection>
</lvc:CartesianChart.Series>
</lvc:CartesianChart>
</UserControl>
using LiveChartsCore;
using LiveChartsCore.SkiaSharpView;
namespace ViewModelsSamples.Bars.Layered;
public class ViewModel
{
public int[] Values1 { get; set; } =
[6, 3, 5, 7, 3, 4, 6, 3];
public int[] Values2 { get; set; } =
[2, 4, 8, 9, 5, 2, 4, 7];
}
Custom geometries
The second generic argument of the series sets the geometry of each bar, a RoundedRectangleGeometry by default.
This sample uses, in order, the default geometry, a predefined DiamondGeometry (the
LiveChartsCore.SkiaSharpView.Drawing.Geometries namespace has more), an SVG path through VariableSVGPathGeometry
and GeometrySvg, and a geometry drawn with the SkiaSharp API (MyGeometry).

<UserControl
x:Class="WPFSample.Bars.Custom.View"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF"
xmlns:vms="clr-namespace:ViewModelsSamples.Bars.Custom;assembly=ViewModelsSamples"
xmlns:local="clr-namespace:WPFSample.Bars.Custom">
<UserControl.DataContext>
<vms:ViewModel/>
</UserControl.DataContext>
<lvc:CartesianChart>
<lvc:CartesianChart.Series>
<lvc:SeriesCollection>
<lvc:XamlColumnSeries Values="{Binding Values1}"/>
<!--
The DiamondColumnSeries is a column series that draws a diamond shape.
-->
<local:DiamondColumnSeries Values="{Binding Values2}" />
<!--
You can also use SVG paths to draw the geometry
the VariableSVGPathGeometry can change the drawn path at runtime
-->
<local:VariableSVGPathColumnSeries
GeometrySvg="{Binding StarPath}"
Values="{Binding Values3}"/>
<!--
Finally you can also use SkiaSharp to draw your own geometry
-->
<local:MyGeometryColumnSeries Values="{Binding Values4}"/>
</lvc:SeriesCollection>
</lvc:CartesianChart.Series>
</lvc:CartesianChart>
</UserControl>
using LiveChartsCore.Drawing;
namespace ViewModelsSamples.Bars.Custom;
public class ViewModel
{
public double[] Values1 { get; } = [2, 1, 4];
public double[] Values2 { get; } = [4, 3, 6];
public double[] Values3 { get; } = [-2, 2, 1];
public double[] Values4 { get; } = [1, 2, 3];
public string StarPath { get; } = SVGPoints.Star;
}
using LiveChartsCore.Drawing;
using LiveChartsCore.SkiaSharpView.Drawing;
namespace ViewModelsSamples.Bars.Custom;
public class MyGeometry : BoundedDrawnGeometry, IDrawnElement<SkiaSharpDrawingContext>
{
public void Draw(SkiaSharpDrawingContext context)
{
var paint = context.ActiveSkiaPaint;
var canvas = context.Canvas;
var y = Y;
while (y < Y + Height)
{
canvas.DrawLine(X, y, X + Width, y, paint);
y += 5;
}
}
}
using LiveChartsCore.SkiaSharpView;
using LiveChartsCore.SkiaSharpView.WPF;
using LiveChartsCore.SkiaSharpView.Drawing.Geometries;
using ViewModelsSamples.Bars.Custom;
namespace WPFSample.Bars.Custom;
// WPF xaml parser does not support generic types
// we instead create a non-generic class that inherits from the generic one.
public class DiamondColumnSeries : XamlColumnSeries<double, DiamondGeometry> { }
public class VariableSVGPathColumnSeries : XamlColumnSeries<double, VariableSVGPathGeometry> { }
public class MyGeometryColumnSeries : XamlColumnSeries<double, MyGeometry> { }
Data, names and updates
Valuestakes anyIEnumerable<T>. Use anObservableCollection<T>and the chart animates every added, removed or replaced value, see automatic updates.- To plot your own types, or set both X and Y, see mappers.
Name(SeriesNamein XAML) is shown in tooltips and legends. When it is not set, the tooltip shows the values without a series name.ZIndexsets which series draws on top, andIsVisibleshows or hides the series.- To stack the bars of several series, see stacked series.